ALARM
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
BSD 4
NAME
alarm
- set signal timer alarm
SYNOPSIS
Fd #include <unistd.h>
Ft unsigned int
Fn alarm unsigned int seconds
DESCRIPTION
Bf -symbolic
This interface is made obsolete by setitimer(2).
Ef
The
Fn alarm
function
waits a count of
seconds
before asserting the terminating signal
SIGALRM
When the signal has successfully been caught,
Fn alarm
returns the amount of time left on the clock.
The maximum number of
seconds
allowed
is 2147483647.
If an alarm has been set with
Fn alarm ,
another call to
Fn alarm
will supersede the prior call.
The request
Fn alarm 0
voids the current
alarm.
SEE ALSO
sigaction(2),
setitimer(2),
sigpause(2),
sigvec(3),
signal(3),
sleep(3),
ualarm(3),
usleep(3)
STANDARDS
The
Fn alarm
function conforms to
St -p1003.1-90 .
HISTORY
An
Fn alarm
function appeared in
AT&T System
v7 .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- STANDARDS
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 16:28:59 GMT, April 18, 2022